#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CIMAGEPANELUI_IMAGEPANELUI_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CIMAGEPANELUI_IMAGEPANELUI_H

#include "ControlUI.h"

class CImagePanelUI: public CControlUI
{
public:
	CImagePanelUI(void);
	virtual ~CImagePanelUI(void);
	LPCTSTR GetClass() const;

	bool SetImage(LPCTSTR pstrImage);
	void SetWidth(int cx);
	void SetHeight(int cy);

	SIZE EstimateSize(SIZE szAvailable);
	void DoPaint(HDC hDC, const RECT& rcPaint);
	void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);

protected:
	HBITMAP m_hBitmap;
	SIZE m_cxyFixed;
};
#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_CIMAGEPANELUI_IMAGEPANELUI_H
